void aliceLogo(TString date="", Float_t lowx=0.8, Float_t lowy=0.75, Float_t height=0.22) {

  //Acquire canvas proportions
  Double_t AliLogo_LowX = lowx;
  Double_t AliLogo_LowY = lowy;
  Double_t AliLogo_Height = height;
  
//   Double_t aspectRatio=348.9180/377.3028;
  Double_t aspectRatio=1454./1575.;
  Double_t AliLogo_Width  = aspectRatio * AliLogo_Height * gPad->GetWh() * gPad->GetHNDC() / (gPad->GetWNDC() * gPad->GetWw());
  TPad *myPadLogo = new TPad("myPadLogo", "Pad for ALICE Logo",
                             AliLogo_LowX, AliLogo_LowY,
                             AliLogo_LowX+AliLogo_Width, AliLogo_LowY+AliLogo_Height);
  
  //    myPadLogo->SetFillColor(2); // color to first figure out where is the pad then comment !
  myPadLogo->SetLeftMargin(0);
  myPadLogo->SetTopMargin(0);
  myPadLogo->SetRightMargin(0);
  myPadLogo->SetBottomMargin(0);
  myPadLogo->SetFillStyle(0);
  myPadLogo->SetFillColor(0);
  //myPadLogo->SetFixedAspectRatio(1);
  myPadLogo->Draw();
  myPadLogo->cd();
  TASImage *myAliceLogo = new TASImage("performance.eps");
  myAliceLogo->SetImageQuality(TAttImage::kImgBest);
  myAliceLogo->SetConstRatio(kTRUE);
//   printf("quality: %d, compression: %d\n",myAliceLogo->GetImageQuality(), myAliceLogo->GetImageCompression());
  myAliceLogo->Draw();

  TObjArray *arrText=date.Tokenize("|");
  const Int_t nText=arrText->GetEntriesFast();
  
  gPad->cd();
  TLatex l;
  Double_t textFraction=6.;
  l.SetNDC();
  l.SetTextSize(AliLogo_Height/textFraction);
  l.SetTextAlign(22);

  for (Int_t i=0; i<nText; ++i) l.DrawLatex(AliLogo_LowX+AliLogo_Width/2., AliLogo_LowY-i*(AliLogo_Height/textFraction+.01)-AliLogo_Height*.7/textFraction,arrText->At(i)->GetName());
/*  
  TPaveText *dateText=new TPaveText(AliLogo_LowX-.05,AliLogo_LowY-AliLogo_Height/5.*arrText->GetEntriesFast()-.01,AliLogo_LowX+AliLogo_Width+.05, AliLogo_LowY-.01,"BRNDC");
  dateText->SetFillStyle(1);
  dateText->SetFillColor(0);
  dateText->SetBorderSize(0);
   dateText->AddText(arrText->At(i)->GetName());
  dateText->Draw();
  */
}

void SetStyle()
{
  const Int_t NCont=255;

  TStyle *st = new TStyle("pidstyle","pidstyle");
  gROOT->GetStyle("Plain")->Copy((*st));
  st->SetTitleX(0.1);
  st->SetTitleW(0.8);
  st->SetTitleH(0.08);
  st->SetStatX(.9);
  st->SetStatY(.9);
  st->SetNumberContours(NCont);
  st->SetPalette(1,0);
  st->SetOptStat("");
  st->SetOptFit(0);
  st->SetGridColor(kGray+1);
  st->SetPadGridX(kFALSE);
  st->SetPadGridY(kFALSE);
  st->SetPadTickX(kTRUE);
  st->SetPadTickY(kTRUE);
  st->SetMarkerStyle(20);
  st->SetMarkerSize(.5);
  st->SetPadLeftMargin(0.12);
  st->SetPadBottomMargin(0.12);
  st->SetPadRightMargin(0.05);
  st->SetPadTopMargin(0.05);
  st->cd();

  Int_t nimTPCFont=42; //or 62 for sans serif font
  //default definitions
  st->SetTextFont(nimTPCFont);
  st->SetTitleFont(nimTPCFont, "T");
  st->SetTitleFont(nimTPCFont, "XYZ");
  st->SetLabelFont(nimTPCFont,"XYZ");
  st->SetLabelSize(0.045,"XYZ");
  st->SetTitleSize(0.05,"XYZ");
  st->SetTitleOffset(1.1,"XYZ");
  //st->SetTitleOffset(0.8,"Y");
  st->SetStatFont(nimTPCFont);
  st->SetOptTitle(0);
  st->SetPalette(1,0);
  st->SetStatBorderSize(1);
  new TColor(2001,1,1,1);
  st->SetFillColor(2001);
  st->SetTickLength(gStyle->GetTickLength()/696.*472.,"y");
  
  //stNimTPC->SetPadColor(-101);//- is correct! No background box for ps, eps figures
  //stNimTPC->SetCanvasColor(-101);//- is correct! No background box for ps, eps figures

  const Int_t NRGBs = 5;
  Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
  Double_t red[NRGBs]   = { 0.00, 0.00, 0.87, 1.00, 0.51 };
  Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 };
  Double_t blue[NRGBs]  = { 0.51, 1.00, 0.12, 0.00, 0.00 };
  //grey
  //  Double_t       stops[5] = {0.00, 0.34, 0.61, 0.84, 1.00};
  //  Double_t         red[5]   = {1.00, 0.84, 0.61, 0.34, 0.00};
  //  Double_t         green[5]   = {1.00, 0.84, 0.61, 0.34, 0.00};
  //  Double_t         blue[5]   = {1.00, 0.84, 0.61, 0.34, 0.00};

  TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont);


  //stNimTPC->cd();
  st->cd();

  gROOT->ForceStyle(kTRUE);
}
